package cn.dada.dadarecipes.community.article.service;

import cn.dada.dadarecipes.community.article.pojo.dto.ArticleQuery;
import cn.dada.dadarecipes.community.article.pojo.dto.ArticleSaveParam;
import cn.dada.dadarecipes.community.article.pojo.vo.ArticleDetailsVO;
import cn.dada.dadarecipes.community.article.pojo.vo.ArticleVO;
import cn.dada.dadarecipes.community.article.pojo.vo.MyArticleVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ArticleService {
    List<MyArticleVO> selectMyArticle(Long userId, HttpSession session);
    List<MyArticleVO> selectLikeArticle(Long userId, HttpSession session);
    List<MyArticleVO> selectApproveArticle(Long userId, HttpSession session);
    List<ArticleVO> selectArticle(ArticleQuery articleQuery);
    ArticleDetailsVO selectArticleDetails(Long articleId,Long userId,HttpSession session);

    Long saveArticle(ArticleSaveParam articleSaveParam, HttpSession session);

    void deleteArticle(Long articleId, HttpSession session);


}
